package com.sm.controller;

import java.util.List;

import com.sm.model.NormalQuestion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sm.service.NormalQuestionService;
import com.sm.util.Msg;

@Controller
@RequestMapping("/NormalQuestion")
public class NormalQuestionController {
	@Autowired
	private NormalQuestionService normalQuestionService;
	
	/**
	 * 查常见问题
	 * @return
	 */
	@RequestMapping("/selectNormalQuestion")
	@ResponseBody
	public Msg selectNormalQuestion() {
		
		List<NormalQuestion> nqlist = normalQuestionService.selectNQ();
		return Msg.success().add("nq", nqlist);
	}
}
